/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.student.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 学生表Entity
 * @author 大唐云
 * @version 2021-05-20
 */
@Data
public class Student extends DataEntity<Student> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="学号", align=2, sort=1)
	private String sId;		// 学号
	@ExcelField(title="姓名", align=2, sort=2)
	private String sName;		// 姓名
	@ExcelField(title="ip地址", align=2, sort=3)
	private String ipAddress;		// ip地址
	@ExcelField(title="登录次数", align=2, sort=4)
	private Integer loginCount;		// 登录次数
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="登陆时间", align=2, sort=5)
	private Date lastLoginTime;		// 登陆时间
	
	public Student() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}
	
	public Student(String id){
		super(id);
	}
}